import axios from '&helpers/axios';

// 获取二级指标点
export const reqSecondRequire = (params) => {
  return axios({
    method: 'get',
    url: '/secondRequirement/all',
    params: params
  })
}


// 加入二级指标点
export const reqAddSecondRequire = (params) => {
  params.firstRequirementId= Number(params.firstRequirementId)
  params.secondRequirementNo= Number(params.secondRequirementNo)
  return axios({
    method: 'post',
    url: '/secondRequirement/add',
    params: params
  })
}

// 删除二级指标点
export const reqDeleteSecondRequire = (params) => {
  return axios({
    method: 'get',
    url: '/secondRequirement/delete',
    params: params
  })
}

// 编辑二级指标点
export const reqUpdataSecondRequire = (params) => {
  return axios({
    method: 'post',
    url: '/secondRequirement/edit',
    params: params
  })
}